local skill = fk.CreateSkill {
  name = "#lvs__chitu_skill",
  tags = { Skill.Compulsory },
  attached_equip = "lvs__chitu",
}
local ls = require "packages/lvshi/utility"
skill:addEffect("distance", {
  correct_func = function(self, from, to)
    if from:hasSkill(skill.name) then
      return -1
    end
  end,
})

skill:addEffect(fk.TargetSpecified, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skill.name) and data.card.trueName == "slash"
    and data.card.color == Card.Red and string.find(ls.getStrategy(player, true), "courage")
  end,
  on_use = function(self, event, target, player, data)
    data.disresponsive = true
  end,
})

return skill